package mesweb.mesweb.service;

import com.hszh.wms.mbg.PermissionManager.entity.UmsAdmin;
import com.hszh.wms.mbg.PermissionManager.entity.UmsResource;

import java.util.List;

/**
 * 后台用户缓存操作类
 * Created by macro on 2020/3/13.
 */
public interface UmsAdminCacheService {
    /**
     * 删除后台用户缓存
     */
    void delAdmin(Long adminId);

    /**
     * 设置缓存后台用户信息
     */
    void setAdmin(UmsAdmin admin);



    void delResourceList(Long adminId);

    void delResourceListByRole(Long roleId);

    void delResourceListByRoleIds(List<Long> roleIds);
    void delResourceListByResource(Long resourceId);

    UmsAdmin getAdmin(String username);

    List<UmsResource> getResourceList(Long adminId);

    void setResourceList(Long adminId, List<UmsResource> resourceList);


}
